<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="box"></div>
    <script>
        //改变元素节点的CSS样式 style属性
        var oBox=document.getElementById('box');
        // oBox.style.backgroundColor='red'
        // oBox.style.backgroundImage='url(images/1.jpg)'
        // oBox.style.fontSize='32px'
        
    </script>
</body>
</html>